package com.example.cyw.mycontextprover;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by cyw on 2017/12/4.
 */

public class myOpenHelper extends SQLiteOpenHelper {
    public myOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String create_student="create table student(id int,name varchar(20),age int)";
        db.execSQL(create_student);

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
